# -*- coding: utf-8 -*-
"""
@Time    : 2021/3/9 13:00
@Author  : hui lin
"""
import os
from obespoir.share.singleton import Singleton


_need_reload = True


class ClientConfig(object, metaclass=Singleton):

    def __init__(self):
        self.root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))

        self.width = 630
        self.height = 630

        self.bullet_image_path = {
            "up": os.path.join(self.root_dir, "resources/images/bullet/bullet_up.png"),
            "down": os.path.join(self.root_dir, "resources/images/bullet/bullet_down.png"),
            "left": os.path.join(self.root_dir, "resources/images/bullet/bullet_left.png"),
            "right": os.path.join(self.root_dir, "resources/images/bullet/bullet_right.png")
        }

        self.background_image_path = os.path.join(self.root_dir, "resources/images/others/background.png")
        self.login_bg_path = os.path.join(self.root_dir, "resources/images/login/bg.png")
        self.text_background: str = os.path.join(self.root_dir, "resources/images/login/txt_input.png")

        self.account_name_label = os.path.join(self.root_dir, "resources/images/login/account_name_label.png")
        self.login_label_path = os.path.join(self.root_dir, "resources/images/login/login_label.png")
        self.password_label_path = os.path.join(self.root_dir, "resources/images/login/password.png") 

        self.logo_image = os.path.join(self.root_dir, "resources/images/others/logo.png")

        self.font_path = os.path.join(self.root_dir, "resources/font/font.ttf")

        self.tank_cursor_image = os.path.join(self.root_dir, "resources/images/playerTank/tank_T1_0.png")

        self.game_bar = os.path.join(self.root_dir, "resources/images/others/gamebar.png")

        self.game_over = os.path.join(self.root_dir, "resources/images/others/gameover.png")
